/*
 * @Author: humengchuan 531537052@qq.com
 * @Date: 2024-11-27 17:27:11
 * @LastEditors: humengchuan 531537052@qq.com
 * @LastEditTime: 2024-11-27 23:29:03
 * @FilePath: \project-my\forum-project\services\file_service.js
 * @Description: 文件上传相关服务
 */

const { env } = require("../utils/env")
const User = require("../models/user")
/**
 * 
 */

/**
 * 更新用户信息
 * @param {*} userId 
 * @param {*} userInfo 
 */
const updatedUserInfo = async (userId, userInfo) => {
  const user = await User.findOne({
    where: {
      id: userId
    }
  })
  if (user) {
    user.update(userInfo)
  }
}